package com.biao.mall.cart.vo;

import lombok.Data;
import lombok.ToString;

/**
 * 用来表时，用户时登录还是未登录的状态
 */
public class UserInfoTo {

    /**
     * 存在代表登录
     */
    private Long userId;

    private String userKey;

    /**
     * 用来判断是否给前端响应cookie的
     */
    private boolean responseCookie = true;

    @Override
    public String toString() {
        return "UserInfoTo{" +
                "userId=" + userId +
                ", userKey='" + userKey + '\'' +
                ", responseCookie=" + responseCookie +
                '}';
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserKey() {
        return userKey;
    }

    public void setUserKey(String userKey) {
        this.userKey = userKey;
    }

    public boolean isResponseCookie() {
        return responseCookie;
    }

    public void setResponseCookie(boolean responseCookie) {
        this.responseCookie = responseCookie;
    }
}
